﻿#ifndef C3FDMONITORDATFILEREADER_H
#define C3FDMONITORDATFILEREADER_H

#include <QStringList>
#include <QVector>

namespace MainWidget
{

	class C3fdMonitorDatFileReader
	{
	public:
		C3fdMonitorDatFileReader(QString fileName);
		~C3fdMonitorDatFileReader() = default;

		int getNumOfColumn() const;
		QStringList getTitles() const;
		QList<QVector<double>> getValues() const;

	private:
		void parse(QString fileName);
		QVector<double> parseStringtoDouble(QString str, int count = 0);
	private:
		QStringList m_Titles = {};
		QList<QVector<double>> m_Values = {};
	};
}

#endif